import yaml


def get_cfg(yaml_path):
    with open(yaml_path, 'r', encoding="utf-8") as file:
        cfg = yaml.safe_load(file)
    return cfg
